import React,{Component} from "react"
import "./center.css"
import classNames from "classnames"
export default class NotFound extends Component{
    constructor(props){
        super(props)
        this.state={
            flag:false
        }
    }
    change(e){
        this.setState({
            flag:e.target.checked
        })
    }
    render(){
        return <div className="center">
            <div className="fix-top">
                <i className="left"></i>
                <h4>个人中心</h4>
                <i className="right"></i>
            </div>
           <div className={classNames('h4',{'h':this.state.flag})}>个人中心</div>
           <input type="checkbox" checked={this.state.flag} onChange={this.change.bind(this)}/>
        </div>
    }
}